/**
 * FileName: Demo
 *
 * @author: 阿张
 * Date:     2021/3/3 15:27
 */
package com.qx.strategy;

import com.qx.factory.OperationFactory;
import com.qx.pojo.ScUser;
import com.qx.service.OperationContext;

public class Demo {

    public static void main(String[] args) {
        OperationContext operationContext = new OperationContext();
        OperationFactory operationFactory = new OperationFactory();
        operationContext.setDistribution(operationFactory.getDistribution("add"));
        ScUser scUser = new ScUser();
        scUser.setRemake("");
        scUser.setUsername("1");
        //System.out.println(operationContext.doOperation(3800, 120,100,scUser,0));
    }
}
